package com.ruoyi.pg.evaluate.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.pg.evaluate.domain.PgAssessmentTemp;
import com.ruoyi.pg.evaluate.vo.PgAssessmentTempVo;
import com.ruoyi.pg.evaluate.mapper.PgAssessmentTempMapper;
import com.ruoyi.pg.evaluate.service.IPgAssessmentTempService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 评估模板Service业务层处理
 *
 * @author Ming
 * @date 2025-08-22
 */
@Service
public class PgAssessmentTempServiceImpl extends ServiceImpl<PgAssessmentTempMapper, PgAssessmentTemp> implements IPgAssessmentTempService {

    @Override
    public TableDataInfo<PgAssessmentTempVo> queryList(PgAssessmentTempVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<PgAssessmentTempVo> queryAll(PgAssessmentTempVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public PgAssessmentTempVo queryById(Long id) {
        return this.baseMapper.queryById(id);
    }
}
